cmake_minimum_required(VERSION 3.16)
project(httplib_test)

include_directories(${HOME}/3rd/easylogging)  
include_directories(${HOME}/core)
aux_source_directory(. SRC_LIST)

message("---------1-------")
message(STATUS ${PROJECT_NAME})
message("---------2-------")
message(STATUS ${SRC_LIST})
message("---------3-------")
message(STATUS ${CORE_SRC_LIST})
message("---------4-------")
message(STATUS ${ELOG_SRC_LIST})
message("---------5-------")


# ---------1-------
# -- httplib_test
# ---------2-------
# -- ./httplib_test.cpp
# ---------3-------
# -- /home/zhangxi/MyWorkspace/TestAndStudy/cpp_plugin_framework_http_demo/core/httpclient.cpp/home/zhangxi/MyWorkspace/TestAndStudy/cpp_plugin_framework_http_demo/core/httpserver.cpp/home/zhangxi/MyWorkspace/TestAndStudy/cpp_plugin_framework_http_demo/core/logger.cpp/home/zhangxi/MyWorkspace/TestAndStudy/cpp_plugin_framework_http_demo/core/setproctitle.cpp
# ---------4-------
# -- 3rd/easylogging/easylogging++.cc   #==> 不要使用  aux_source_directory("3rd/easylogging" ELOG_SRC_LIST) 相对路径,
# ---------5-------
# -- Configuring done

# build execute
add_executable(${PROJECT_NAME} ${SRC_LIST} ${COMMON_SRC_LIST} ${CORE_SRC_LIST})

# -L
link_directories(${HOME}/lib)

# -l
target_link_libraries(${PROJECT_NAME} easyloggingcpp pthread)

# set exe output path
SET(EXECUTABLE_OUTPUT_PATH  ${HOME}/bin)





